package com.kfc.platform.user.service.impl;


import org.springframework.beans.factory.annotation.Autowired;

import com.kfc.platform.user.dao.TeacherDao;
import com.kfc.platform.user.dao.UserDao;
import com.kfc.platform.user.domain.Teacher;
import com.kfc.platform.user.domain.User;
import com.kfc.platform.user.service.TeacherService;
import com.kfc.platform.user.service.UserService;

public class TeacherServiceImpl implements TeacherService{
	@Autowired
	private TeacherDao teacherDao;
	public TeacherDao getTeacherDao() {
		return teacherDao;
	}
	public void setTeacherDao(TeacherDao teacherDao) {
		this.teacherDao = teacherDao;
	}
	@Override
	public String createTeacher(Teacher teacher) {
		// TODO Auto-generated method stub
		Teacher insert = new Teacher();
		insert.setName(teacher.getName());
		insert.setClassnum(teacher.getClassnum());
		teacherDao.save(insert);
		return "插入数据库成功！";
	}
	@Override
	public void deleteTeacher(Teacher teacher) {
		// TODO Auto-generated method stub
	}
}
